"use strict "

let Koa=require('koa');
let bodyParser=require('koa-bodyparser');

let controllers=require('./controllers')
let templating=require('./templating');
let staticsRes=require('koa-static');

let app = new Koa();


app.use(staticsRes(__dirname+"/static"));
app.use(bodyParser());

app.use(controllers());
app.use(templating);

app.use(async(ctx,next)=>{
        ctx.render('hello.html',{uuu:'12345678910'})
    }
)

let port=3000;

app.listen(port)

console.log(`http://localhost:${port}`);
